From: Carlos Garnacho Date: Mon, 6 Jul 2026 17:37:42 +0000 (+0200) Subject: shellMountOperation: Add missing docstrings X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~15 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=56a693ebdcc47cce029c9cc1bba0f75d3c669959;p=gnome-shell.git shellMountOperation: Add missing docstrings For some reason, eslint trips up with non-exported classes with a static initializer. Add the missing docs that somehow make it happy. Part-of: (cherry picked from commit 46a3ec66913df94da6da5661cb3c090f28ce6253) --- diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js index aa180baf1..05a9a5a23 100644 --- a/js/ui/shellMountOperation.js +++ b/js/ui/shellMountOperation.js @@ -23,6 +23,12 @@ const WORK_SPINNER_ICON_SIZE = 16; const REMEMBER_MOUNT_PASSWORD_KEY = 'remember-mount-password'; /* ------ Common Utils ------- */ + +/** + * @param {ModalDialog.ModalDialog} dialog + * @param {string[]} oldChoices + * @param {string[]} choices + **/ function _setButtonsForChoices(dialog, oldChoices, choices) { const buttons = []; let buttonsChanged = oldChoices.length !== choices.length; @@ -42,6 +48,10 @@ function _setButtonsForChoices(dialog, oldChoices, choices) { dialog.setButtons(buttons); } +/** + * @param {Dialog.MessageDialogContent} content + * @param {string} message + **/ function _setLabelsForMessage(content, message) { const labels = message.split('\n');